html {
    font-size: 16px;
}

@media (min-width: 48em) {
  html {
    font-size: 20px;
  }
}

body {
    margin: 0;
    font-size: 1rem;
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", "WenQuanYi Micro Hei", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    background-color: #f1f1f1;
    color: #5a5a5a;
}

a {
   color: #08c;
   text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

input,
button {
    box-sizing: border-box;
    padding: .5rem;
    font-size: inherit;
}

button {
    padding: .5rem 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.error {
    padding: .5rem;
    background-color: #a94442;
    color: #fff;
}

.form-group:last-child {
    margin-bottom: 0;
}

.flash {
    background-color: #fff;
    padding: 1rem;
    margin: 0 1rem 1rem;
    border-left: 5px solid #f0ad4e;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1)
}

.header {
    margin-bottom: 2rem;
}

.header h1 {
    text-align: center;
}

.header nav {
    text-align: center;
}

.header nav a {
    display: inline-block;
    padding: .5rem 1rem;
    margin: 0 .5rem;
    background-color: #08c;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 2px 5px;
    font-size: 14px;
    background-color: #08c;
    color: #fff;
}

.header nav a:hover {
    text-decoration: none;
}

.login-form {
    margin: 0 auto;
    width: 20rem;
    padding: 1rem;
    border: 1px solid #ccc;
    box-shadow: 0 0 2px rgba(0,0,0,.25);
    background-color: #fff;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
}

.login-form input {
    width: 100%;
}

.bookmark-form {
    padding: 1rem;
}

.bookmark-form .control {
    margin-left: 5rem;
}

.bookmark-form .control input {
    width: 100%;
}

.bookmark-form label {
    float: left;
    width: 3rem;
    padding-top: .5rem;
    padding-right: 2rem;
    text-align: right;
}

.bookmark-form .form-actions {
    margin-left: 5rem;
}

.tags > li {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 5px;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1)
}

@media (max-width: 48em) {
    .bookmark-form .control {
        margin-left: 0;
    }

    .bookmark-form label {
        float: none;
        display: block;
        text-align: left;
        padding-right: 0;
    }

    .bookmark-form .form-actions {
        margin-left: 0;
    }
}